from flask import Flask
from app.model.model import db
from config import config
import logging

app = Flask(__name__)
db.init_app(app)
app.config.from_object(config)

# 修改分隔符
app.jinja_env.variable_start_string = config.variable_start_string
app.jinja_env.variable_end_string = config.variable_end_string

# 注册蓝图
from app.controller.api import api as api_blueprint
from app.controller.hello import hello as hello_blueprint
app.register_blueprint(api_blueprint)
app.register_blueprint(hello_blueprint)

